<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="@{include} :: header"></head>
	<link href="css/bootstrap.min.css?v=3.3.6" th:href="@{/css/bootstrap.min.css?v=3.3.6}" rel="stylesheet">
<body class="gray-bg">
	<div class="wrapper wrapper-content">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input id="parentId" name="parentId" type="hidden" th:value="${pId}">
							<input id="type" name="type" type="hidden" th:value="1">
							<div class="form-group">
								<label class="col-sm-3 control-label">上级菜单：</label>
								<div class="col-sm-8">
									<input id="" name="" class="form-control" type="text" th:value="${pName}" readonly>
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">是否显示：</label>
								<div class="col-sm-8">
									<select data-placeholder="--请选择--" name="show" id="show" class="form-control chosen-select">
										<option value="1">显示</option>
										<option value="0">隐藏</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">菜单名称：</label>
								<div class="col-sm-8">
									<input id="name" name="name" class="form-control" th:value="${menu.name}" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">菜单前缀：</label>
								<div class="col-sm-8">
									<input id="url" name="url" class="form-control" th:value="${menu.url}" type="text">
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-3 control-label">排序号：</label>
								<div class="col-sm-8">
									<input id="orderNum" name="orderNum" class="form-control" type="text">
								</div>
							</div>

							<input type="hidden" name="roleIds" id="roleIds">
							<div class="form-group">
								<label class="col-sm-3 control-label">功能按钮：</label>
								<div class="col-sm-8">
									<label th:each="btn:${btns}" class="checkbox-inline">
										<input name="btns" type="checkbox" th:value="${btn.id}" th:text="${btn.name}">
									</label>
								</div>
							</div>

							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script th:src="@{/js/appjs/sys/menu/batchAdd.js}"></script>
</body>

</html>
